//
//  RootViewController.h
//  JReaderSDK
//
//  Created by linziyuan on 2017/7/17.
//  Copyright © 2017年 creative. All rights reserved.
//

#import <UIKit/UIKit.h>
@class TABLE_BOOKS;

#define ROOTVCUINFOCHANGED @"JR_RootVCUinfoChanged"

typedef void(^Process)(BOOL);

@interface RootViewController : UIViewController

+ (instancetype)shareLastInstance;


+ (void)outEnterToReadBookWithTbBook:(TABLE_BOOKS*)tb_book currentVC:(UIViewController *)currentVC success:(void(^)())success failure:(void(^) ())failure;

- (void)cleanLimitedDateAndReflashLibrary;
- (void)load_UserInfo_Server_Login:(Process)processSuccess;
- (void)stopAudioPlay:(BOOL)cleanData;
- (void)checkTo_Home;
- (void)yzt_Login:(BOOL)isNeedRelogin;
- (void)yzt_Login:(BOOL)isNeedRelogin complete:(void(^)(BOOL isSuccess))complete;
- (void)initialJRAdudioData;
+ (void)mergeBookSubWithBaseBookTable:(TABLE_BOOKS*)bookModal BookSub:(NSDictionary*)bookSub;
- (void)refreshBookHouseIsMine:(BOOL)isMine;
- (void)openSingelBookWithBookId:(NSInteger)bookId tbBook:(TABLE_BOOKS*)tb_book isClick:(BOOL)isClick;
- (void)refreshAboutMeStoryCard;
- (void)reflashHomePage;
- (void)load_UinfoAuthority:(BOOL)isloadBaseNeeded;
- (void)changeToToolBarType:(NSString *)type;

@end
